package concurrent.TaskQueue;

public class PrintTask implements ITask{

    private int id;

    public PrintTask(int id) {
        this.id = id;
    }

    @Override
    public void run() {
        System.out.println("Print Task Start:id=" + id);
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {

        }
        System.out.println("Print Task End:id=" + id);
    }
}
